package com.olive.controller;

import java.util.HashMap;
import java.util.Map;

import com.olive.annotation.Encrypted;
import com.olive.dto.ResultInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

	@Encrypted
	@RequestMapping("/reqBody")
	public ResultInfo<Map<String, Object>> reqBody(){
		ResultInfo<Map<String, Object>> resultInfo = new ResultInfo<>();
		resultInfo.setCode(200);
		resultInfo.setMessage("success");

		Map<String, Object> map = new HashMap<>();
		map.put("userId", 100);
		map.put("tenantId", 1001);
		map.put("userName", "bug弄潮儿");
		resultInfo.setBody(map);

		return resultInfo;
	}

}
